package com.xinli.business.domain;

import java.util.Date;

import cn.hutool.core.date.DateTime;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.xinli.common.annotation.Excel;
import com.xinli.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 咨询师时间段对象 consultant_time_slot
 *
 * @author ruoyi
 * @date 2025-05-05
 */
@Data
@TableName(value = "consultant_time_slot")
public class ConsultantTimeSlot {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * "咨询师用户ID"
     */
    @Excel(name = "咨询师用户ID")
    private Long userId;

    /**
     * "预约日期"
     */
    @Excel(name = "预约日期", readConverterExp = "哪=一天")
    private Date slotDate;

    /**
     * "开始时间"
     */
    @JsonFormat(pattern = "HH:mm:ss")
    @Excel(name = "开始时间", width = 30, dateFormat = "HH:mm:ss")
    private Date startTime;

    /**
     * "结束时间"
     */
    @JsonFormat(pattern = "HH:mm:ss")
    @Excel(name = "结束时间", width = 30, dateFormat = "HH:mm:ss")
    private Date endTime;

    /**
     * "状态"
     */
    @Excel(name = "状态", readConverterExp = "1=可预约,2=已约满,0=停用")
    private Long status;

    /**
     * "上午 下午"
     */
    @Excel(name = "上午 下午")
    private String amPmFlag;

    /**
     * "创建时间"
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createdAt;

    /**
     * "更新时间"
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date updatedAt;

}
